#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework2_4.py
# author:wmf
# datetime:2021/4/4 21:01
# software: PyCharm
'''
this is function description
'''
# import module your need

# 4  写函数，统计字符串中有几个字母，
#    几个数字，几个空格，几个其他字符，并返回结果;

def Letter_Count(str1):
    dict1 = {}
    for x in str1:
        if(x in dict1):
            dict1[x] = dict1[x] + 1
        else:
            dict1[x] = 1
    print(dict1)

str1 = "Hello World!666"

print("字符串为:%s"%str1)
Letter_Count(str1)